package cn.tedu.huntingmall.pojo.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class UserRegDTO implements Serializable {

    /**
     * 验证请求参数失败的描述文本前缀
     */
    private static final String VALIDATE_MESSAGE_PREFIX = "注册用户失败，";

    @ApiModelProperty(value = "用户头像", required = true)
    private String icon;

    @ApiModelProperty(value = "用户名", required = true)
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "请输入用户名!")
    private String username;

    @ApiModelProperty(value = "密码", required = true)
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "请输入密码!")
    private String password;

}
